﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PwdModify.aspx.cs" Inherits="UserBackGround_CheckInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server" >
    <title>修改密码</title>

    <style type="text/css">
        .style1
        {
            height: 30px;
            width: 380px;
            font-size:12
        }
    </style>

</head>
<body style="font-size:12px">
<center>
    <form id="form1" runat="server">
    <table border="0" cellspacing="0" cellpadding="0" >
                <tr>
                    <td style=" height: 30px; text-align: right; width:60">
                       </td>
                    <td style="color: red;text-align: left;" class="style1">
                        
                        </td>
                </tr>
                <tr>
                    <td style=" height: 30px; text-align: right">
                      输入新密码:</td>
                    <td style="color: red;text-align: left;" class="style1">
                        <asp:TextBox ID="password" runat="server" Width="120px" TextMode="Password"></asp:TextBox>
                        *&nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="password"
                            Display="Dynamic" ErrorMessage="密码不能为空" ValidationGroup="v1" >
                            </asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="password"
                                ErrorMessage="密码必须为6-20位字母、数字或它们的组合" ValidationExpression="[a-zA-Z0-9]{6,20}" ValidationGroup="v1">
                                </asp:RegularExpressionValidator>
                        </td>
                </tr>
                <tr>
                    <td style=" height: 30px; text-align: right">
                        确认新密码:</td>
                    <td style="color: red;text-align:left;" class="style1">
                        <asp:TextBox ID="TB3" runat="server" Width="120px" TextMode="Password"></asp:TextBox>
                        *
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TB3"
                            Display="Dynamic" ErrorMessage="&nbsp;确认密码不能为空" ValidationGroup="v1" ></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="password"
                            ControlToValidate="TB3" ErrorMessage="确认密码与新密码不一致"  ValidationGroup="v1" ></asp:CompareValidator></td>
                </tr>
                <tr><td></td>
                    <td style="text-align: left" class="style1">
                        <asp:Button ID="mdfy" runat="server" Text="修改" ValidationGroup="v1" OnClick="mdfy_Click" BackColor="AliceBlue" BorderColor="LightBlue"/></td>
                </tr>
            </table>
            <br />
            <br />
    </form>
    </center>
</body>
</html>
